package org.elfen.sys.biz;

import org.elfen.common.Token;
import org.elfen.common.id.IDGenerateUtils;
import org.elfen.sys.facade.TokenBiz;
import org.springframework.stereotype.Service;


//@Service(interfaceClass=TokenBiz.class,version="1.0")
@Service("tokenBizImpl")
public class TokenBizImpl implements TokenBiz {

	@Override
	public Token getTokenInfo(Long id, String name) {
		Token tokenInfo = new Token();
		tokenInfo.setUserId(id+"");
		tokenInfo.setUserName(name);
		tokenInfo.setTime(System.currentTimeMillis());
		tokenInfo.setTokenKey(IDGenerateUtils.uuid());
		
		return tokenInfo;
	}
	

}
